Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Rename destructuring parameter to workaround https://bugs.webkit.org/show_bug.cgi?id=220517

  • 8.0.0-alpha.13
  • next
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
22M
increased by3.29%
Maintainers
4
Weekly downloads
 
Created

What is @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression?

The @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression package is designed to address a specific bug in Safari related to the collision of variable names in destructuring assignments within function expressions. This plugin works as part of the Babel toolchain to transform affected code into a format that avoids the bug, ensuring compatibility and preventing runtime errors in Safari.

What are @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression's main functionalities?

Bug Fix for Safari Destructuring Collision

This code sample demonstrates a scenario where the plugin would transform the function expression to avoid a naming collision that Safari cannot handle. Without the plugin, this code might cause a runtime error in Safari due to the destructuring assignment.

const example = ({ a }) => { const { a: b } = someObject; return a + b; };

Other packages similar to @babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression

Keywords

FAQs

Package last updated on 25 Oct 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc